package com.drawquest.exception;

/**
 * @author Dmitry
 */
public class BadResponseException extends RuntimeException {

    private int code;

    public BadResponseException(String message, int code) {
        super(message);
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    @Override
    public String toString() {
        return getMessage() + ":" + code;
    }

}
